package router

import (
	"beesoft.ink/application/garage/app/api/garage"
	"github.com/labstack/echo/v4"
)

func GarageFlow(router *echo.Group) {
	r := router.Group("/garage")

	WarehouseEntry(r)
	WarehouseExit(r)
}
func WarehouseEntry(router *echo.Group) {
	r := router.Group("/warehouse-entries")

	r.GET("", garage.WarehouseEntry.List)
	r.GET("/:id", garage.WarehouseEntry.Show)
	r.POST("", garage.WarehouseEntry.Store)
	r.PUT("/:id", garage.WarehouseEntry.Update)
	r.DELETE("//:id", garage.WarehouseEntry.Destroy)
}
func WarehouseExit(router *echo.Group) {
	//r := router.Group("/warehouse-exits")
	//
	//r.GET("", garage.WarehouseExit.List)
	//r.GET("/:id", garage.WarehouseExit.Show)
	//r.POST("", garage.WarehouseExit.Store)
	//r.PUT("/:id", garage.WarehouseExit.Update)
	//r.DELETE("/:id", garage.WarehouseExit.Destroy)
}
